package com.song.ioc.循环依赖;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @Description: A：类描述
 * @author: songzhangyong
 * @Date: 2019/11/15 09:19
 */
@Component
public class A {

	@Autowired
	public B testB ;

//	@Autowired
//	public int a ;


	public void testMethodAAAAA(){
		System.out.println("testMethodAAAAAtestMethodAAAAA"  );
	}



	@PostConstruct
	public void init(){
		System.out.println("A init");
	}


	@PreDestroy
	public void PreDestroy(){
		System.out.println("A PreDestroy");
	}

}
